<?php
$routerGroup = new \Phalcon\Mvc\Router\Group(['module' => 'backend']);

$routerGroup -> setPrefix('/backend');

$routerGroup -> addGet('/constants', ['controller'=>'Constants','action'=>'find']) -> setName('BackendConstants::find');

$routerGroup -> addGet('/staff/pager', ['controller'=>'Staff','action'=>'pager']) -> setName('BackendStaff::pager');

$routerGroup -> addGet('/staff/acl/roles/pager', ['controller'=>'StaffAclRoles','action'=>'pager']) -> setName('BackendStaffAclRoles::pager');

$routerGroup -> addGet('/staff/notice/pager', ['controller'=>'StaffNotice','action'=>'pager']) -> setName('BackendStaffNotice::pager');

$routerGroup -> addGet('/staff/swipe/pager', ['controller'=>'StaffSwipe','action'=>'pager']) -> setName('BackendStaffSwipe::pager');

$routerGroup -> addGet('/cache', ['controller'=>'Cache','action'=>'index']) -> setName('BackendCache::index');
$routerGroup -> addGet('/cache/clear', ['controller'=>'Cache','action'=>'clear']) -> setName('BackendCache::clear');

$routerGroup -> addGet('/user/pager', ['controller'=>'User','action'=>'pager']) -> setName('BackendUser::pager');

$routerGroup -> addGet('/user/wallet/:int/record/pager', ['controller'=>'UserWalletRecord','action'=>'pagerByfield','field'=>1]) -> setName('BackendUserWalletRecord::pagerByfield');

$routerGroup -> addPost('/user/wallet/recharge/account', ['controller'=>'UserWallet','action'=>'rechargeByAccount']) -> setName('BackendUserWallet::rechargeByAccount');

$routerGroup -> addPost('/user/mutually/match', ['controller'=>'UserMutually','action'=>'match']) -> setName('BackendUserMutually::match');

$routerGroup -> addGet('/user/mutually/buy/pager', ['controller'=>'UserMutuallyBuy','action'=>'pager']) -> setName('BackendUserMutuallyBuy::pager');

$routerGroup -> addGet('/user/mutually/sell/pager', ['controller'=>'UserMutuallySell','action'=>'pager']) -> setName('BackendUserMutuallySell::pager');

$routerGroup -> addGet('(/?)', ['controller'=>'Index','action'=>'index']) -> setName('BackendIndex::index');

return $routerGroup;
